package com.pjnkj.thunder.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author pjnkj
 * @since 2022-01-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="User对象", description="")
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "角色id")
    private String roleid;

    @ApiModelProperty(value = "单次抽奖")
    private Integer onceday;

    @ApiModelProperty(value = "头像")
    private String head;

    @ApiModelProperty(value = "vip")
    private Integer vip;

    @ApiModelProperty(value = "alipay")
    private String alipay;

    @ApiModelProperty(value = "openid")
    private String openid;

    @ApiModelProperty(value = "alipayimg")
    private String alipayimg;

    @ApiModelProperty(value = "wximg")
    private String wximg;

    @ApiModelProperty(value = "balance")
    private Integer balance;

    @ApiModelProperty(value = "删除")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "抢单时间")
    @TableField(value = "createTime", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新状态时间")
    @TableField(value = "lastModifiedTime", fill = FieldFill.INSERT_UPDATE)
    private Date lastModifiedTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
